Skip to content

Add support for parsing pip cache origin.json files#4874

Open
Yuganti-hash wants to merge 2 commits intoaboutcode-org:developfrom
Yuganti-hash:pip-cache-parser
Open

Add support for parsing pip cache origin.json files#4874
Yuganti-hash wants to merge 2 commits intoaboutcode-org:developfrom
Yuganti-hash:pip-cache-parser

Conversation

@Yuganti-hash
Copy link
Copy Markdown

Fixes #4220

This PR adds support for parsing pip cache directories by extracting metadata from origin.json files.

Changes

  • Added a parser to detect pip cache directories
  • Extracts download URL from origin.json
  • Returns basic package metadata (type, download_url)

Example

Before: pip cache directories were ignored
After: ScanCode detects and extracts package source from origin.json

Testing

  • Added unit test for pip cache parsing
  • Verified extraction of download URL
  • All existing tests pass successfully

@AyanSinhaMahapatra
Copy link
Copy Markdown
Member

This PR and the changes in #4871 have the same code, seems like you've mixed up the git branches and have the same changes there.

You need to make sure the PRs are modular and separate, and only have the changes related to that specific issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parse pip cache dir

2 participants